package priv.pfz.basedao.lab.dao.mapper;

import org.apache.ibatis.annotations.Param;
import priv.pfz.basedao.lab.dao.entity.GoodsEntity;
import priv.pfz.basedao.lab.dao.entity.GoodsQuery;
import priv.pfz.basedao.mybatis.mapper.DefaultBaseMapper;

import java.util.List;

/**
 * @author yyjxp
 * 2024/2/2 21:59
 */
public interface GoodsMapper extends DefaultBaseMapper<GoodsEntity, GoodsQuery> {
    GoodsEntity selectById(@Param("id") long id);

    List<GoodsEntity> listWithLimit(@Param("limit") int limit);
}
